package com.example.administrator.acmapp.Fragment.LoginAndSiginFragmentPage;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.example.administrator.acmapp.Activity.MainActivity;
import com.example.administrator.acmapp.R;

/**
 * Created by Administrator on 2018/2/2/002.
 */

public class LoginFragment extends Fragment {

    private View view;
    Button button;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.login_fragment_layout,container,false);
        button = view.findViewById(R.id.user_login_btn);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(getActivity(),MainActivity.class);
                startActivity(intent);
            }
        });
        return view;

    }
}
